// A-S-M team
// Project: BattleCity
// Created: 19.03.2011
// Last change: 26.03.2011
// Description: program entry point


#include "application.h"
#include <ClanLib/application.h>
#include <ClanLib/core.h>
#include <ClanLib/display.h>
#include <ClanLib/gl.h>


class Program
{
public:
	static int main(const std::vector<CL_String> &args)
	{
		// initialize ClanLib base and display components 
		CL_SetupCore setup_core;
		CL_SetupDisplay setup_display;
		CL_SetupGL setup_gl;

		// start application
		Application::init(args);
		int retval = Application::getInstance()->mainLoop();
		return retval;
	}
};

// create global application object
CL_ClanApplication app(&Program::main);
